<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <title>ShellCheck: SC1107 – This directive is unknown. It will be ignored.</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
  </head>
  <body style="margin-left: auto; margin-right: auto; max-width: 800px">
    <h1>SC1107 – ShellCheck Wiki</h1>
    <a href="https://github.com/koalaman/shellcheck/wiki/SC1107">See this page on GitHub</a>
    <p style="display: none"><a href="index.html">Sitemap</a></p>
    <hr />
    <h2 id="this-directive-is-unknown-it-will-be-ignored">This directive is
unknown. It will be ignored.</h2>
<h3 id="problematic-code">Problematic code:</h3>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="SC1107.html#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># shellcheck foobar=baz</span></span>
<span id="cb1-2"><a href="SC1107.html#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> <span class="st">&quot;Hello World&quot;</span></span></code></pre></div>
<h3 id="correct-code">Correct code:</h3>
<p>Depends on your intention.</p>
<h3 id="rationale">Rationale:</h3>
<p>ShellCheck doesn't recognize the <a href="directive.html">directive</a>
you're trying to use in a <code># shellcheck</code> comment. See the <a
href="Directive.html">Directive</a>s page for supported directives.</p>
<p>It could be misspelled, or you could be using an older version of
shellcheck that doesn't support it yet.</p>
<h3 id="exceptions">Exceptions:</h3>
<p>None. If you wish to ignore this warning and continue without it, you
need version 0.4.5 (commit 88c56ec) or later and a command grouping:</p>
<pre><code># Ignore an unrecognized directive in 0.4.5 or later:
# shellcheck disable=SC1107
{
  # shellcheck unrecognized=directive
  echo &quot;Hello World&quot;
}</code></pre>
<p>Before 0.4.5, unrecognized directives are considered parse
errors.</p>
    <hr />
    <p style='font-size: 80%'><a href="../index.html">ShellCheck</a> is a static analysis tool for shell scripts. This page is part of its documentation.</p>
  </body>
</html>


